package com.ruoyi.mes.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 计划订单联系对象 pln_released_plan
 * 
 * @author ruoyi
 * @date 2024-06-04
 */
public class PlnReleasedPlan extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 订单id */
    @Excel(name = "订单id")
    private Long orderId;

    /** 产品id */
    @Excel(name = "产品id")
    private Long proId;

    /** 下达数量 */
    @Excel(name = "下达数量")
    private Long num;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "计划下达日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date releasedDate;

    /** 计划开始日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "计划开始日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startDate;

    /** 计划截止日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "计划截止日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endDate;

    /** 0：未下达；1：已下达 */
    @Excel(name = "0：未下达；1：已下达")
    private Long state;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }
    public void setProId(Long proId) 
    {
        this.proId = proId;
    }

    public Long getProId() 
    {
        return proId;
    }
    public void setNum(Long num) 
    {
        this.num = num;
    }

    public Long getNum() 
    {
        return num;
    }

    public void setReleasedDate(Date releasedDate)
    {
        this.releasedDate = releasedDate;
    }

    public Date getReleasedDate()
    {
        return releasedDate;
    }

    public void setStartDate(Date startDate)
    {
        this.startDate = startDate;
    }

    public Date getStartDate() 
    {
        return startDate;
    }
    public void setEndDate(Date endDate) 
    {
        this.endDate = endDate;
    }

    public Date getEndDate() 
    {
        return endDate;
    }
    public void setState(Long state) 
    {
        this.state = state;
    }

    public Long getState() 
    {
        return state;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderId", getOrderId())
            .append("proId", getProId())
            .append("num", getNum())
            .append("releasedDate", getReleasedDate())
            .append("startDate", getStartDate())
            .append("endDate", getEndDate())
            .append("state", getState())
            .toString();
    }
}
